<template>
  <div class="home">
    子应用内容展示在下面
    <!-- sub-project 子项目 mount挂在的dom Id -->
    <div id="sub-project" class="container"></div>
  </div>
</template>

<script>
import registerApp from "@/utils/single-spa-config.js";

export default {
  name: "HomeView",
  mounted() {
    registerApp(this.$route.fullPath);
  },
};
</script>
<style scoped lang="less">
.container {
  width: 100%;
  height: 200px;
  border: 1px solid #555454;
}
</style>
